import {defineConfig} from 'vite';
import vue from '@vitejs/plugin-vue';
import {resolve} from 'path';
// https://vitejs.dev/config/
export default defineConfig({
    plugins: [
        vue()
    ],
    server: {
        port: 3333,
        open: true
    },
    build: {
        lib: {
            entry: resolve("src/core/index.ts"),
            name: 'BrowserLogger',
            fileName: 'browser-logger',
            formats: ['es']
        },
        rollupOptions: {
            external: ['vue']
        }
    }
})
